package com.yueka.service;

import com.yueka.pojo.PageResult;
import com.yueka.pojo.course.CourseRecord;

import java.time.LocalDateTime;
import java.util.List;

public interface CourseRecordService {

    void update(CourseRecord courseRecord);

    PageResult<CourseRecord> list(String schoolTime, String status,Integer page, Integer pageSize);

    PageResult<CourseRecord> getByStudentId(Integer studentId, LocalDateTime start, LocalDateTime end, String crType, Integer page, Integer pageSize);

    PageResult<CourseRecord> getByTeacherId(Integer teacherId, LocalDateTime start, LocalDateTime end, Integer page, Integer pageSize);

    List<CourseRecord> openCourse(LocalDateTime date);

    void subscribe(Integer studentId, Integer courseId);

    void insert(CourseRecord courseRecord);

    void deleteById(CourseRecord courseRecord);
}
